package com.atguigu07._abstract;

/**
 * ClassName: Sutdent
 * Package: com.atguigu07._abstract
 * Description:
 *
 * @Author 姜
 * @Create 2023/11/23 17:22
 * @Version 1.0
 */
public class Student extends Person {
    String school;

    public Student() {
    }

    public Student(String school) {
        this.school = school;
    }

    public Student(String name, int age, String school) {
        super(name, age);
        this.school = school;
    }

    public void eat() {
        System.out.println("干饭干饭");
    }

    public void sleep() {
        System.out.println("睡觉啊，睡懒觉");
    }
}
